package cn.tedu.tmall.front.mall.pojo.po;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
//@TableName("goods_search")
@Document(indexName = "index_crud")
public class GoodsSearchPO {

    @Id
    Long id;

    @Field(type = FieldType.Text)
    String title;

    Integer isPutOn;

    Long salePrice;
}
